<?php


if (!(empty($_POST)))  //不为空
{
    $username=isset($_POST["username"]) ? trim($_POST["username"])  : "";
    $password=isset($_POST["password"]) ? trim($_POST["password"])  : "";
    $re=isset($_POST["re"]) ? trim($_POST["re"])  : false;
    
    require_once 'db_conn.php';
    $sql="select * from t_user where usename='$username'";
    $rs=$db->query($sql);
   if($rs)
       {
           $row=$rs
                   
       }
    
   if($oklogin)
       {
       
       
    

        echo "<script language='javascript' type='text/javascript'>";
        echo "alert('登录失败！');";
        echo "window.location.href='login.php'";
        echo "</script>"; 
    }
    
}

